package org.jeecg.modules.pinkun.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 贫困
 * @Author: jeecg-boot
 * @Date:   2021-05-08
 * @Version: V1.0
 */
@Data
@TableName("diy_pinkun")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="diy_pinkun对象", description="贫困")
public class DiyPinkun implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**学号*/
	@Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    private java.lang.String number;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private java.lang.String name;
	/**性别*/
	@Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别")
    private java.lang.String sex;
	/**出生年月*/
	@Excel(name = "出生年月", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出生年月")
    private java.util.Date birthday;
	/**民族*/
	@Excel(name = "民族", width = 15)
    @ApiModelProperty(value = "民族")
    private java.lang.String nation;
	/**身份证*/
	@Excel(name = "身份证", width = 15)
    @ApiModelProperty(value = "身份证")
    private java.lang.String idCard;
	/**政治面貌*/
	@Excel(name = "政治面貌", width = 15)
    @ApiModelProperty(value = "政治面貌")
    private java.lang.String zzmm;
	/**家庭人口数*/
	@Excel(name = "家庭人口数", width = 15)
    @ApiModelProperty(value = "家庭人口数")
    private java.lang.String jtrks;
	/**在校月开销*/
	@Excel(name = "在校月开销", width = 15)
    @ApiModelProperty(value = "在校月开销")
    private java.lang.String zxykx;
	/**是否建档立卡*/
	@Excel(name = "是否建档立卡", width = 15)
    @ApiModelProperty(value = "是否建档立卡")
    private java.lang.String sfjdlk;
	/**入学前户口*/
	@Excel(name = "入学前户口", width = 15)
    @ApiModelProperty(value = "入学前户口")
    private java.lang.String rxqhk;
	/**是否单亲*/
	@Excel(name = "是否单亲", width = 15)
    @ApiModelProperty(value = "是否单亲")
    private java.lang.String sfdq;
	/**是否孤残*/
	@Excel(name = "是否孤残", width = 15)
    @ApiModelProperty(value = "是否孤残")
    private java.lang.String sfgc;
	/**是否烈士或优抚对象子女*/
	@Excel(name = "是否烈士或优抚对象子女", width = 15)
    @ApiModelProperty(value = "是否烈士或优抚对象子女")
    private java.lang.String sflshyfdxzn;
	/**家庭人均年收入*/
	@Excel(name = "家庭人均年收入", width = 15)
    @ApiModelProperty(value = "家庭人均年收入")
    private java.lang.String jtrjnsr;
	/**系别*/
	@Excel(name = "系别", width = 15)
    @ApiModelProperty(value = "系别")
    private java.lang.String depaerment;
	/**专业*/
	@Excel(name = "专业", width = 15)
    @ApiModelProperty(value = "专业")
    private java.lang.String professor;
	/**邮政编码*/
	@Excel(name = "邮政编码", width = 15)
    @ApiModelProperty(value = "邮政编码")
    private java.lang.String yzemail;
	/**在校联系电话*/
	@Excel(name = "在校联系电话", width = 15)
    @ApiModelProperty(value = "在校联系电话")
    private java.lang.String phoneschool;
	/**家庭成员情况*/
	@Excel(name = "家庭成员情况", width = 15)
    @ApiModelProperty(value = "家庭成员情况")
    private java.lang.String jtcyqk;
	/**影响家庭经济状况有关信息*/
	@Excel(name = "影响家庭经济状况有关信息", width = 15)
    @ApiModelProperty(value = "影响家庭经济状况有关信息")
    private java.lang.String yxjtjjzkygxx;
	/**学生陈述申请认定理由*/
	@Excel(name = "学生陈述申请认定理由", width = 15)
    @ApiModelProperty(value = "学生陈述申请认定理由")
    private java.lang.String ly;
	/**评议小组意见*/
	@Excel(name = "评议小组意见", width = 15)
    private transient java.lang.String pyxzyjString;

    private byte[] pyxzyj;

    public byte[] getPyxzyj(){
        if(pyxzyjString==null){
            return null;
        }
        try {
            return pyxzyjString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getPyxzyjString(){
        if(pyxzyj==null || pyxzyj.length==0){
            return "";
        }
        try {
            return new String(pyxzyj,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**签字*/
	@Excel(name = "签字", width = 15)
    private transient java.lang.String qzString;

    private byte[] qz;

    public byte[] getQz(){
        if(qzString==null){
            return null;
        }
        try {
            return qzString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getQzString(){
        if(qz==null || qz.length==0){
            return "";
        }
        try {
            return new String(qz,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
}
